package com.ks.projectbasictools.bean;

import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Data
public class RegisterBean extends BaseEntity {

    private DataDTO data;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        private UserDTO user;
        private String token;

        @NoArgsConstructor
        @Data
        public static class UserDTO {
            private Long id;
            private String realName;
            private String username;
            private String type;
            private String phoneNumber;
            private Long roleId;
            private List<Long> projectIdList;
            private List<?> authorities;
        }
    }
}
